﻿namespace UniSender
{
    public class SmsState
    {
        public virtual MessageStatus Status { get; set; }

        public virtual bool IsError
        {
            get { return Status < 0; }
        }

        public SmsState(MessageStatus status)
        {
            Status = status;
        }

        public SmsState(Native.SmsState native)
        {
            Status = Utility.ParseEnum<MessageStatus>(native.status);
        }
    }
}
